package org.example;
//工厂模式(实现)
public class HaierAirConditioner implements AirConditioner {
    @Override
    public void powerOn() {
        System.out.println("空调已开启");
    }

    @Override
    public void powerOff() {
        System.out.println("空调已关闭");
    }

    @Override
    public void setTemperature(int temperature) {
        System.out.println("空调温度已设置为" + temperature + "度");
    }
}